package com.doone.telmarket.domain.factory;

import com.doone.telmarket.domain.Service;
import com.doone.telmarket.domain.ibator.ServiceClassify;
import com.doone.telmarket.domain.ibator.ServiceType;

@org.springframework.stereotype.Service
public class ServiceFactory {

	public Service createService(String serviceName, String spName, String serviceState, ServiceType serviceType,
			ServiceClassify serviceClassify) {
		Service service = new Service(serviceName, spName, serviceState, serviceType, serviceClassify);
		service.setServiceCode(service.hashCode());
		return service;
	}

}
